export default {
    methods: {
        // 发送获取歌曲数据请求
        async getSongs({type = 1, pageSize, offset}) {
            // 获取路由传递的参数
            const work = this.$route.query.work
            // const {options: {pageSize}, offset} = this
            let {result} = await this.$API.search.search(work, pageSize, offset, type)
            window.scrollTo(0, 0)
            return result
        },
    }
}
